#include "databaseinstancemngr.h"

DataBaseInstanceMngr* DataBaseInstanceMngr::pDataBaseInstanceMngr = 0;

DataBaseInstanceMngr::DataBaseInstanceMngr()
{
}

DataBaseInstanceMngr::~DataBaseInstanceMngr()
{
}

DatabaseManager *DataBaseInstanceMngr::getDatabaseManager(std::string db_name)
{
  return db_mngr_factory.getRegisterClass(db_name);
}

DatabaseManager *DataBaseInstanceMngr::setDatabaseManager(std::string db_name, class_buffer_base *pmngr)
{
  db_mngr_factory.Register(pmngr, db_name);
  return db_mngr_factory.getRegisterClass(db_name);
}

void DataBaseInstanceMngr::deleteDatabaseManager(std::string db_name)
{
  db_mngr_factory.deRegitrateObject(db_name);
}
